package utool

import "your-tool/internal/service"

// 获取每日一句
func (a *App) DailySentenceGo() H {
	s, err := service.DailySentence()
	if err != nil {
		return M{
			"code": 0,
			"msg": err.Error(),
			"data": nil,
		}
	}
	return M{
		"code": 1,
		"msg": "success",
		"data": s,
	}
}